package com.d09cnpm2.group8;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.d09cnpm2.group8.map.R;
import com.d09cnpm2.group8.model.TravelLocation;

public class DetailFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
	    Bundle savedInstanceState) {
	View view = inflater.inflate(R.layout.details, container, false);
	return view;
    }
    public void populateFields(TravelLocation obj){
	TextView title = (TextView) getView().findViewById(R.id.tv_title);
	title.setText(obj.name);
    }

}
